
/**********************************************************************************************
Step 1: Save much smaller state-only or county-only subsets of the 
BlackKnight data, to make merging easier
**********************************************************************************************/


use "$BK/BlackKnight.dta", clear
keep if inlist(agg_type_name,"State","County")
preserve
keep if agg_type_name=="State"
save "$BK/state_only", replace
restore
keep if agg_type_name=="County"
save "$BK/county_only", replace

